<?php
    if(empty($_FANWE['cache']['medals'])) {
        Cache::getInstance()->loadCache('medals');
    }
?>

<!--{loop $shop_list $item}-->
<div class="item">
    <a href="{u shopinfo/show id=$item['id']}" target="_blank" class="a1"><img src="{$item[img]}" class="wf_img" width="{$item[width]}" height="{$item[height]}" /></a>
    <div class="i_info">
        <a style="display:inline-block;padding:2px 2px;" href="{u shopinfo/show id=$item['id']}">{$item[name]}
            {if $item['uid']}&nbsp;
            <!--{if $item['v2'] > 0}-->
            <?php $medal = $_FANWE['cache']['medals']['all'][$item['v2']]; ?>
                <img src="{$medal['small_img']}" height="25" alt="{$medal['desc']}" title="{$medal['desc']}">
            <!--{/if}-->
            {elseif $item['show_v2'] > 0}
            <!--{if $item['show_v2'] > 0}-->
            <?php $medal = $_FANWE['cache']['medals']['all'][$item['show_v2']]; ?>
                <img src="{$medal['small_img']}" height="25" alt="{$medal['desc']}" title="{$medal['desc']}">
            <!--{/if}-->
            {/if}</a>    
    </div>
    <div class="i_time">
        店铺：<a href="/u.php?action=index&uid={$item['id']}">{$item['name']}</a>
        {if !empty($item['telphone'])}<br/>联系电话：<span style="font-weight:bold;">{$item['telphone']}{if !empty($item['telphone2'])}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$item['telphone2']}{/if}</span>{/if}
        {if !empty($item['mobile'])}<br/>手机号码：<span style="font-weight:bold;">{$item['mobile']}{if !empty($item['mobile2'])}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$item['mobile2']}{/if}</span>{/if}
        <br/>地区：<a href="/shopinfo.php?action=index&cate={$cate_id}&order=default&cityid={$item['city']}&areaname={$item['city_show']}">{$item['province_show']}{$item['city_show']}</a>
        {if $anli_list[$item['uid']]}
        {if $anli_list[$item['uid']]['price2'] > 0}
        <div class="j_price">
            <label>促销价</label><b class="b1">￥{$anli_list[$item['uid']]['price2']}</b>
        </div>
        {/if}
        <div class="j_price">
            <label>价格</label><b class="{if $anli_list[$item['uid']]['price2'] > 0}b2{else}b1{/if}">￥{$anli_list[$item['uid']]['price']}</b>
        </div>
        
        {/if}
    </div>
</div>
<!--{/loop}-->